<script>
function inherit(proto) {
  function F() {}
  F.prototype = proto;
  return new F();
}
</script>